#ifndef SRNETWORK_H
#define SRNETWORK_H



#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <string>


using namespace std;



/***************************************************
 ** Objects are the main structre, the date transfer
 ** structres are a limitet way only for transport,
 ** they must be translates by the network class, then
 ** the protokoll is changeable from the object.
 **
 *******/




/*** NetTransport ***/

enum _MessageType {
  PING,
  PONG,
  VERSION_ASK,
  VERSION_ANSWER,
  LOGIN_ASK,
  LOGIN_ANSWER,
  CHAR_ASK,
  CHAR_ANSWER
};



struct myDataPacket{
    unsigned char trTypeID;
	_MessageType myTypeID;   // messageID
	int data;     // Converted struckt
	//void *data;     // Converted struckt
	//int len;        // checksum
};

/***/




/*** Structures ***/

struct srObjektAsteroiden {
    bool active, changed;
    long id;
    string name;
};


struct structLogin {
    string name;
    string pass;
};





/***/







#endif // SRNETWORK_H
